﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Prism.Logging;
using Microsoft.Practices.Prism.PubSubEvents;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;

namespace 示例.Common
{
    public class 启动基类 
    {

        public readonly IUnityContainer 人事部;

        public readonly IEventAggregator 新闻部;

        public readonly IRegionManager 行政部;

        public 启动基类(IUnityContainer 人事部cs, IEventAggregator 新闻部cs, IRegionManager 行政部cs)
        {
            人事部 = 人事部cs;
            新闻部 = 新闻部cs;
            行政部 = 行政部cs;
            log = 人事部.Resolve<ILoggerFacade>();
        }

        public ILoggerFacade log { get; set; }
        public bool Is启动 { get; private set; }

        public virtual void 启动()
        {
            Is启动 = true;
        }



        //public override void 启动()
        //{
        //    if (Is启动) return;
        //    base.启动();

        //}
    }
}
